package lq.demo.springbootmybatis.demo.mapper;

import lq.demo.springbootmybatis.demo.entity.MyLog;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface LogMapper {
    /**
     * 添加日志
     *
     * @param myLog
     * @return
     */
    @Insert("insert into my_log (class_name,method_name,ip,parm,create_time,execute_time,operation,request_method) values (#{className},#{methodName},#{ip},#{parm},#{createTime},#{executeTime},#{operation},#{requestMethod})")
    int addLog(MyLog myLog);
}
